package com.zenithmind.article.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zenithmind.article.pojo.domain.Comment;
import com.zenithmind.article.pojo.query.CommentQuery;
import com.zenithmind.article.pojo.vo.CommentPageVO;
import com.zenithmind.common.result.PageResult;

public interface CommentService extends IService<Comment> {
    Comment addComment(Comment comment);

    PageResult<CommentPageVO> pageComment(CommentQuery commentQuery);

    Comment saveOrUpdateComment(Comment comment);

    /**
     * 审核评论
     * @param id 评论ID
     * @param status 状态 1-通过 2-拒绝
     */
    void reviewComment(String id, Integer status);

    /**
     * 获取评论统计信息
     * @return 评论统计数据
     */
    Object getCommentStatistics();
}
